<?php

namespace app\api\model\service;

use think\Model;
class SearchLog extends Model
{
    // 表名
    protected $name = 'service_search_log';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';


    public static function getList($param)
    {
        return self::where($param)->field('id,name')->order('id desc')->limit(10)->select();
    }

}
